<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        document.write(['<script src=https://dss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/jquery/jquery-1.10.2.min_65682a2.js><\/script>', '<script src=test1.js><\/script>'].join(""))
    </script>
</head>

<body>
    <script>
        function loadJS(urlList) {
            for (var i = 0; i < urlList.length; i++) {
                var script = document.createElement("script");
                script.src = urlList[i];
                // document.head.appendChild(script);
                document.getElementsByTagName("head")[0].appendChild(script);
                if (document.attachEvent) {

                    script.onreadystatechange = function() {
                        if (script.readyState == 'loaded' || script.readyState == 'complete') {
                            console.log('加载完成,加载下一个js')

                        }
                    }
                } else {

                    script.onload = function() {
                        console.log('加载完成,加载下一个js')
                    }
                }
            }
        }

        //loadJS(["https://dss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/jquery/jquery-1.10.2.min_65682a2.js"])
    </script>
    <button id="button">

    </button>


    </iframe>


</body>

</html>